package eai.tp2.shippingdepartment;

import javax.jws.WebMethod;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;

@WebService(targetNamespace = "http://eai/tp2/ShipDpt", serviceName = "ShippingDepartmentService")
@SOAPBinding(style = SOAPBinding.Style.RPC)
public class ShippingDepartment {

	@WebMethod
	public boolean startShipping(int numOrder) {
		System.out.println("Recebi uma order id: "+numOrder);
		Thread thread = new Thread(new Timer(numOrder));
		thread.start();		
		return true;
	}
}
